package cn.com.taiji.pos.service.impl;

import cn.com.taiji.pos.entity.ConfigMealTime;
import cn.com.taiji.pos.mapper.ConfigMealTimeMapper;
import cn.com.taiji.pos.service.IConfigMealTimeService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 餐次信息 服务实现类
 * </p>
 *
 * @author
 * @since 2021-03-01
 */
@Service
public class ConfigMealTimeServiceImpl extends ServiceImpl<ConfigMealTimeMapper, ConfigMealTime> implements IConfigMealTimeService {

    @Autowired
    private ConfigMealTimeMapper configMealTimeMapper;

    @Override
    public ConfigMealTime findByName(String canci) {
        QueryWrapper<ConfigMealTime> configMealTimeWrapper = new QueryWrapper<>();
        configMealTimeWrapper.eq("Name", canci);
        return configMealTimeMapper.selectOne(configMealTimeWrapper);
    }
}
